package com.xmut.mall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xmut.mall.order.searchparam.AfterSaleReasonSearchParam;
import com.xmut.mall.order.utils.PageUtils;
import com.xmut.mall.order.entity.AfterSaleReasonEntity;
import com.xmut.mall.order.utils.RespBean;
import com.xmut.mall.order.vo.PageVO;

import java.util.Map;

public interface AfterSaleReasonService extends IService<AfterSaleReasonEntity> {

    /**
     * 获取售后原因分页数据
     * @param vo
     * @param params
     * @return
     */
    RespBean getAfterSaleReasonByPage(PageVO vo, AfterSaleReasonSearchParam params);

    /**
     * 添加售后原因
     * @param params
     * @return
     */
    RespBean addAfterSaleReason(Map<String, Object> params);

    /**
     * 修改售后原因
     * @param params
     * @return
     */
    RespBean updateAfterSaleReason(Map<String, Object> params);

    /**
     * 删除售后原因
     * @param id
     * @return
     */
    RespBean deleteAfterSaleReason(Long id);

    /**
     * 根据售后类型获取官方设定的售后原因
     * @param type
     * @return
     */
    RespBean getAfterSaleReasonByType(String type);


}

